﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MVVMCommon.Repositories
{
    public interface IRepository<TKey, TEntity>
    {
        Task<TEntity> GetByKeyAsync(TKey key);
        Task SetOrUpdateByKeyAsync(TKey key, TEntity entity);
        Task<IDictionary<TKey, TEntity>> GetAllAsync ();
        Task<Boolean> RemoveAsync(TKey key);
    }

   
}
